{messages block='comment'}
{if $iCnt}
<div style="font-size:10pt;" class="color">
{language text="below_is_a_list_of_all_submitted_co"}
</div>
<br /><br />
{str_replace text="`viewing_ifrom_ito_out_of_icnt_comme`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
<br/><br/>
{/if}
{include file="$sRootPath/_blocks/pager_nav_button.html"}
<br />
{foreach from=$aItems item=aItem name=aitems}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table class="mainmenu5" style="width: 100%;" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{language text="type"}:
						{if $aItem.typeid == '1'}
							<a href="{url link="public.blog.view" id=$aItem.itemid}">{language text="blog"}
						{elseif $aItem.typeid == '2'}
							<a href="{url link="public.user" name=$aItem.user_name}">{language text="guestbook"}</a>
						{elseif $aItem.typeid == '3'}
							<a href="{url link="public.gallery.view" id=$aItem.itemid}">{language text="gallery"}</a>
						{elseif $aItem.typeid == '4'}
							<a href="{url link="public.music.song" id=$aItem.itemid}">{language text="music"}</a>
						{elseif $aItem.typeid == '5'}
							<a href="{url link="public.music.album" id=$aItem.itemid}">{language text="music"}</a>
						{/if}
					</td>
				</tr>
			</table>

		<table style="width:100%;" cellpadding="5" cellspacing="0">
		<tr>
		<td style="width:85%;vertical-align:top;font-size:8pt;" class="comment-text">
		<div style="text-decoration:underline;" class="comment-text">{$aItem.time|date_format:$sDateTimeFormat}</div>
		<div style="font-size:8pt;padding-top:10px;" class="comment-text">
			{$aItem.text|process_code}
			<br/><br/>
			<div style="padding:10px;">
				<a href="{url link='current' cdelete=$aItem.cid type=$aItem.typeid}" onclick="return sure('');">[ {language text="delete"} ]</a>
			</div>			
		</div>
		</td>
		</tr>
		</table>

		</td>
	</tr>
</table>
<br/>
{foreachelse}
<div class="message_info">
{language text="there_are_no_comments_yet"}
</div>
{/foreach}
<br />
{include file="$sRootPath/_blocks/pager_nav_button.html"}
<br />